import React, { Component } from 'react'
// Route 此组件用来定义路由规则和匹配成功后要渲染的组件 path component
// Route path=string component={类|router=>{}}
import { Route } from 'react-router-dom'

// 导入路由规则匹配成功后要渲染的组件
import Home from './views/Home'
import About from './views/About'

class App extends Component {
  render() {
    return (
      <div>
        <h3>App组件</h3>
        <hr />

        {/* 定义路由的规则和匹配成的组件 */}
        <Route path="/home" component={Home} />
        <Route path="/about" component={About} />
      </div>
    )
  }
}

export default App
